<%= error_messages_for 'user' %>

<p>
<label for="user_name">Apelido:</label>
<%= text_field :user, :name, :size => 40 %>
</p>

<p>
<label for="user_complete_name">Nome Completo:</label>
<%= text_field :user, :complete_name, :size => 40 %>
</p>

<p>
<label for="user_email">E-mail:</label>
<%= text_field :user, :email, :size => 40 %>
</p>

<p>
<label for="user_department_id">Departmento: </label>
<%= select('user', 'department_id', @departments)   %>
</p>

<p>
<label for="user_position_id">Cargo: </label>
<%= select('user', 'position_id', @positions)   %>
</p>

<p>
<label for="user_is_admin">Permiss&otilde;es: </label>
<%= select('user', 'is_admin', User::PERMISSIONS)   %>
</p>

<p>
<label for="user_in_vacations">Em ferias: </label>
<%= select('user', 'in_vacations', User::VACATIONS)   %>
</p>

<p>
<label for="user_password">Senha:</label>
<%= password_field :user, :password, :size => 40 %>
</p>

<p>
<label for="user_password_confirmation">Confirmar senha:</label>
<%= password_field :user, :password_confirmation, :size => 40 %>
</p>
